//
//  LLMallHeaderView.m
//  lrlzapp
//
//  Created by dl on 16/3/1.
//  Copyright © 2016年 lrlz. All rights reserved.
//

#import "LLMallHeaderView.h"


@implementation LLMallHeaderView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];

        UIView *redDot = [[UIView alloc] initWithFrame:CGRectMake(SUIT_W(14),
                (self.ll_height - SUIT_H(4)) / 2.f,
                SUIT_W(4),
                SUIT_H(4))];
        redDot.layer.cornerRadius = 2;
        redDot.backgroundColor = UIColorFromRGB(0xF9BBD2);
        [self addSubview:redDot];

        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(SUIT_W(23),
                (self.ll_height - SUIT_W(20)) / 2.f,
                self.ll_width - SUIT_W(37),
                SUIT_H(20))];
        self.titleLabel.font = SUIT_FONT(14);
        self.titleLabel.textColor = UI_COLOR_FONT_BLACK;
        [self addSubview:self.titleLabel];
    }
    return self;
}

@end
